<?php

class Public_Post_RedirectSuccessView extends BlogPublicBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
	    /* @var $post Post */
        $post = $this->getAttribute('post');
        /* @var $model Public_PostsModel */
        $model = $this->getContext()->getModel('Posts', 'Public');
        $route_elements = $model->getPostCoordinates($post);
        
        $this->setRoutingRedirect('post.view', $route_elements);
	}
}

?>